<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>一拼通放箱</title>
    <!-- <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> -->
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script>
    function addLink() {
      var body_element = document.getElementById('box');
      var selection;
      selection = window.getSelection();
      var appendLink="\r\n\r\n";
      if (window.clipboardData) {
        var copytext = selection + appendLink;
        window.clipboardData.setData ("Text", copytext);
        return false;
      } else {
        var copytext = selection + appendLink;
        var newdiv = document.createElement('div')
        newdiv.style.position='absolute'
        newdiv.style.left='-99999px'
        body_element.appendChild(newdiv)
        newdiv.innerHTML = copytext
        selection.selectAllChildren(newdiv)
        window.setTimeout(function() {
          body_element.removeChild(newdiv)
        },0);
      }
    }
    document.oncopy = addLink;
  </script>
</html>
